package com.yindian.cos.easy.security.properties;

import lombok.Data;

/**
 * token拦截配置
 *
 * @author zhangchuanhao
 * @create 2018/11/22
 */
@Data
public class TokenVerifyProperties {

    /**
     * 是否启用
     */
    private Boolean enable = false;

    /**
     * token在header中的key
     */
    private String tokenKey = "access_token";

    /**
     * 验证URL，支持/**
     */
    private String[] includes = new String[]{"/**"};

    /**
     * 排除URL，支持/**
     */
    private String[] exclusions = new String[]{"/favicon.ico"};

    /**
     * 拦截的执行顺序
     */
    private int order = 800;
}
